package cn.tx.service.Impl;

import cn.tx.dao.ClazzDao;
import cn.tx.dao.InputDao;
import cn.tx.model.Clazz;
import cn.tx.model.Input;
import cn.tx.service.ClazzService;
import cn.tx.service.InputService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class InputServiceImpl implements InputService{

    @Autowired
    private InputDao inputDao;

    @Override
    public Input findByName(String name) {
        return inputDao.findByName(name);
    }

    @Override
    public int addInput(Input input) {
        return inputDao.addInput(input);
    }

    @Override
    public List<Input> findList(Map<String, Object> querymap) {
        return inputDao.findList(querymap);
    }

    @Override
    public List<Input> findAll() {
        return inputDao.findAll();
    }

    @Override
    public int findTotal(Map<String, Object> querymap) {
        return inputDao.findTotal(querymap);
    }

    @Override
    public int UpdateInputById(Input input ) { return inputDao. UpdateInputById(input);
    }

    @Override
    public int delete(String ids) {
        return inputDao.delete(ids);
    }
}